#!/usr/bin/env python

from __future__ import unicode_literals, print_function

from veles.schema import nodeid
from veles.scli import client
from veles.util import helpers

parser = helpers.get_client_argparse()
parser.add_argument('id', help='hex-encoded id of object to delete')
args = parser.parse_args()

client = client.create_client(args.server_url)

obj = nodeid.NodeID.from_hex(args.id)

client.delete(obj)
print('DELETED')
